See below for some examples for how to use the BigFix Platform API (more information and download links for the platform API available here: https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/Tivoli%20Endpoint%20Manager/page/BigFix%20Platform%20API).

Please feel free to add examples:

Platform API Examples

Command line

Example to import a simple action using the BESImportFile.exe tool (simpleaction.bes was exported from the BigFix Console by right-clicking on an action and selecting "export"):

besimportfile.exe myconsoleuser mypassword bes_bfenterprise C:\key\publisher.pvk C:\example\simpleaction.bes



Perl

BESAPI.pm -- Library used for Perl examples below.

ImportFile.pl -- Imports any .bes file that has been exported from the BigFix Console and/or created (similar to besimportfile.exe example above...)

TakeActionFromFixlet.pl -- Takes an action from a Fixlet and allows you to specify action parameters.

 

C#

TakeActionFromFixlet.cs -- Takes an action from a Fixlet and allows you to specify action parameters.